<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/Website/" />
<title>MakeReservationSC3TC1</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">MakeReservationSC3TC1</td></tr>
</thead><tbody>
<!--Created by Steven Chow-->
<!--Scenario 3: Cancelled Reservation-->
<!--Test Case 1: Go back to home page-->
<!---->
<!--Go to website-->
<tr>
	<td>open</td>
	<td>http://localhost:8080/Website/</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile.bg-color-red &gt; div.tile-content.icon</td>
	<td></td>
</tr>
<!--Hey Mr. Login!!! I need to use u in order to access the portal to StormWind!!-->
<tr>
	<td>type</td>
	<td>name=username</td>
	<td>User1</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--Portal!! R u there? I must deliver a message to King Varian of a Horde Invasion!!-->
<tr>
	<td>assertTitle</td>
	<td>Customer Portal</td>
	<td></td>
</tr>
<!--OH CRAP!!! THe portal Ported my to IronForge.  I need to book a flight-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile-content.icon &gt; img</td>
	<td></td>
</tr>
<!--NO TIME TO FILTER!! THE ALLIANCE IS IN TROUBLE IF WE Don't WARN THE KING!!-->
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--Let's pick the 1st one.  That gryphon is damn sexy!!-->
<tr>
	<td>click</td>
	<td>xpath=(//label[@onclick=''])[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//input[@name='r1'])[2]</td>
	<td></td>
</tr>
<!--Let's Reserve that BABY!!!!-->
<tr>
	<td>clickAndWait</td>
	<td>css=div &gt; input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--Let's fill in our info-->
<tr>
	<td>type</td>
	<td>name=firstName</td>
	<td>test</td>
</tr>
<tr>
	<td>type</td>
	<td>name=lastName</td>
	<td>test</td>
</tr>
<tr>
	<td>type</td>
	<td>name=seatID</td>
	<td>34</td>
</tr>
<tr>
	<td>click</td>
	<td>css=label.radio &gt; span</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>name=mealOption</td>
	<td></td>
</tr>
<!--OH WAIT!! THERE IS A HOT HUMAN MAGE HERE!! She can just Port me to StormWind!!-->
<!--Let's not make a reservation!-->
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, '/Website/BackButtonURL?username=User1')]</td>
	<td></td>
</tr>
<!--Is the portal made?  Man that girl is sooooo nice!! I better ask for her number!! Wait are there phones in WoW?-->
<tr>
	<td>assertTitle</td>
	<td>Customer Portal</td>
	<td></td>
</tr>
<!--That reservation better not be made OR I will pimp slap those dwarves!!-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile.bg-color-blue &gt; div.tile-content.icon</td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>test</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
